package com.example.demo.design.decorator;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 15:25 2020/12/24
 * @Modified By:
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        // 调用原有的业务方法
        super.operation();
        // 调用新增的业务方法
        addedBehavior();
    }

    private void addedBehavior() {
        // do something
    }
}
